#!/usr/bin/env python3
# -*- coding: utf-8 -*-

def quick_sort(array):
    if len(array) < 2:
        return array
    else:
        pivot = array[0]
        less = [i for i in array[1:] if i <= pivot]
        greater = [i for i in array[1:] if i > pivot]
        return quick_sort(less) + [pivot] + quick_sort(greater)

my_array = [1, 9, 45, 7, 15, -5, 2, 74, -27, 10]
print(quick_sort(my_array))